package collection;

public class BinTreeNode<E> extends ABinTreeNode<E> {
	
	private BinTreeNode<E> parent;
	private BinTreeNode<E> leftChild;
	private BinTreeNode<E> rightChild;
	
	public BinTreeNode(E element)
	{
		super(element);
	}
	
	BinTreeNode<E> getParent()
	{
		return this.parent;
	}
	
	void setParent(BinTreeNode<E> parent)
	{
		this.parent = parent;
	}
	
	BinTreeNode<E> getLeftChild()
	{
		return this.leftChild;
	}
	
	BinTreeNode<E> getRightChild()
	{
		return this.rightChild;
	}
	
	void setLeftChild(BinTreeNode<E> leftChild)
	{
		this.leftChild = leftChild;
	}
	
	void setRightChild(BinTreeNode<E> rightChild)
	{
		this.rightChild = rightChild;
	}
	
	@Override
	public void clear()
	{
		super.clear();
		this.leftChild = null;
		this.rightChild = null;
	}

}
